Automatize Sample Code

Sample Code in python notebook to use Automatize as a python library.

[download button]

Observations:


1. Paths Configurations

You can use configured paths if you want to organize directories

2. Pre-processing data

To use helpers for data pre-processing, import from package automatize the module preprocessing.py:

The preprocessing module provides some functions to work data:

Basic functions:

Train and Test split functions:

Type convertion functions:

To k-fold split a dataset into train and test:

2. Scripting

To run feature extraction methods, import from package automatize the modules run.py or script.py:

The gensh function is the statring point to generate scripts for the available methods:

The available methods in automatize are declared here:

Alternatively, it is possible to run methods directly from python automatize library

* The subfolder scripts contains auxiliary runnable python files to execute in command line:

3. Classification

To run classifiers for the HIPERMovelets results, import from package automatize the script analysis.py:

a. To run the classifyers for each folder inside a result path prefix:

b. To run a specific classifyer:

c. To run the classifyers in shell:

4. Exporting Results

To read the results, import from package automatize the module results.py:

a. To check the results (both in python or in shell command line):

a. To check the results (both in python or in shell command line)


To print the dataframe result in a Latex formatted table:


To export all results to DataFrame and save:

5. Visualizing Movelets

To read and visualize the resulting movelets, import from package automatize the module movelets.py:

# By Tarlis Portela (2020)